package utils;
/*
package triUtils;

import java.util.*;


public class TriVector<T> {

	Vector<T> vector;
	
	int size;

	public TriVector() {
		size = 0;
		vector = new Vector<T>();
	}
	
	public TriVector(int preAllocSize) {
		size = 0;
		vector = new Vector<T> (preAllocSize);
	}
	
	public int getSize() {
		return size;
	}
	
	public void resize(int size) {
		if (size < this.vector.size())
			this.size = size;
		else 
			this.size = this.vector.size();
	}
	
	public void add(T item) {
		if (size < vector.size()) 
			vector.add(item);
		else vector.set(size, item);
		++size;
	}
	
	public boolean set(T item, int ith) {
		if (ith < size) {
			vector.set(ith, item);
			return true;
		}
		return false;
	}
	
	public T get(int ith) {
		if (ith < size)
			return vector.elementAt(ith);
		return null;
	}
}
*/